//
//  CategoryViewController.swift
//  iOSProjectExtensionSwift
//
//  Created by HBGG on 2020/7/5.
//  Copyright © 2020 lidianchao. All rights reserved.
//

import UIKit

class CategoryViewController: BaseViewController,UIScrollViewDelegate {

    var _scrollView = UIScrollView.init()
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = .white
        
        
        // Do any additional setup after loading the view.
    }
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.configScroll()
    }
    func configScroll()  {
        _scrollView = UIScrollView.init(frame: CGRect(x: 0, y: Height_NavBar, width: DeviceWidth, height: DeviceHeight-Height_TabBar-Height_NavBar))
        _scrollView.showsVerticalScrollIndicator=false
        _scrollView.clipsToBounds=true
        _scrollView.delegate = self
        _scrollView.backgroundColor = UIColor.red
        self.view.addSubview(_scrollView);
    }

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
